* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    padding: 20px;
    color: #fff;
}

.logo {
    margin-bottom: 40px;
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-icon {
    font-size: 20px;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 20px;
}

/* 顶部栏样式 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome h2 {
    font-size: 24px;
    color: #333;
}

.welcome p {
    color: #666;
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification {
    font-size: 20px;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 数据概览样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.stat-desc {
    color: #999;
    font-size: 14px;
}

/* 日程列表样式 */
.schedule-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.schedule-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 20px;
}

.time {
    font-size: 14px;
    color: #666;
    width: 100px;
}

.content {
    flex: 1;
}

.content h4 {
    color: #333;
    margin-bottom: 5px;
}

.content p {
    color: #666;
    font-size: 14px;
}

.status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status.ongoing {
    background: #e3f2fd;
    color: #1976d2;
}

.status.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.logout-btn {
    padding: 8px 16px;
    margin-left: 16px;
    background: transparent;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #4a90e2;
    color: #fff;
}

/* 添加取消按钮样式 */
.schedule-item .cancel-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: all 0.3s;
}

.schedule-item .cancel-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* 取消预约模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.appointment-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.appointment-info p {
    margin: 5px 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-footer .confirm-btn {
    background: #dc3545;
    color: #fff;
    border: none;
}

.modal-footer .cancel-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
}

/* 确认文本样式 */
.confirm-text {
    color: #dc3545;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
}